<link rel="stylesheet" href="<?php echo TEMPLATE_SITE_PATH; ?>css/datepicker.css" />
<script src="<?php echo TEMPLATE_SITE_PATH; ?>js/date-time/bootstrap-datepicker.min.js"></script>

<?php echo form_open_multipart('', 'class="form-horizontal" role="form"');?>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Name <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('name', set_value('name'), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('name', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">URL <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('url', set_value('url'), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('url', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Publish Date <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('publish', set_value('publish'), 'autocomplete="off" class="col-xs-10 col-sm-5 date-picker" data-date-format="dd-mm-yyyy"'); ?>
            <?php echo form_error('publish', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Category <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_dropdown('category', $category, set_value('category'), 'class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('category', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Zone <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_dropdown('zone', $zone, set_value('zone'), 'class="col-xs-10 col-sm-5"'); ?>
        	<?php echo form_error('zone', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Order Nº</label>
        <div class="col-sm-9">
            <?php echo form_input('order', set_value('order'), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('order', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Image</label>
        <div class="col-sm-9">
            <div class="ace-file-input col-xs-10 col-sm-5 no-padding">
                <input type="file" id="input-file-image" name="image" />
            </div>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Description</label>
        <div class="col-sm-9">
            <?php echo form_textarea('description', set_value('description'), 'class="col-xs-10 col-sm-5"'); ?>
	        <?php echo form_error('description', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Disable</label>
        <div class="col-sm-9">
            <label>
                <input name="disable" class="ace ace-switch" type="checkbox" />
                <?php echo form_checkbox('disable', '1', set_value('disable'), 'class="ace ace-switch"'); ?>
                <span class="lbl"></span>
            </label>
            <?php echo form_error('disable', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <?php echo anchor(site_url(module_controller('view')),'&larr; Cancel', 'class="btn"');?>
            <button name="btnSave" class="btn btn-info" type="submit">
                <i class="icon-ok bigger-110"></i>Save
            </button>
        </div>
    </div>
<?php echo form_close();?>